<template>
  <div class="app">
    <visual-editor v-model="jsonData" :config="visualConfig" />
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { VisualEditor } from '@/packages/visual-editor';
import { visualConfig } from '@/packages/visual-config'

export default defineComponent({
  name: 'App',
  components: {
    VisualEditor
  },
  data() {
    return {
      visualConfig,
      jsonData: {
        container: {
          height: 500,
          width: 800
        },
        blocks: [
          {
            top: 100,
            left: 200
          },
          {
            top: 300,
            left: 200
          },
        ]
      }
    }
  }
});
</script>

<style lang="scss">
html, body {
  margin: 0;
  padding: 0;
}
</style>
